import http from '@/common/http/http'
// 列表
export function attAskforleaveListApi(data){
	return http({
		url:'/attendance/attAskforleave/list',
		data,
		isToken : true,
		method: 'GET'
		// isOpenId: true
	})
}
// 添加
export function attAskforleaveAddApi(data){
	return http({
		url:'/attendance/attAskforleave/add',
		data,
		isToken : true,
		// isOpenId: true
	})
}
//编辑
export function attAskforleaveEditApi(data){
	return http({
		url:'/attendance/attAskforleave/edit',
		data,
		isToken : true,
		// isOpenId: true
	})
}

export function attAskforleaveDeleteApi(data){
	return http({
		url:`/attendance/attAskforleave/delete?id=${data}`,
		// data,
		isToken : true,
		method: 'delete'
	})
}
// 审核
export function attAskforleaveAuditsApi(data){
	return http({
		url:'/attendance/attAskforleave/audits',
		data,
		isToken : true,
		// isOpenId: true
	})
}

export function attAccessRecordListApi(data){
	return http({
		url:'/attendance/attAccessRecord/listPersonal',
		// url:'/attendance/attAccessRecord/list',
		// url:'/attendance/attReissue/list',
		data,
		isToken : true,
		method: 'GET',
		// isOpenId: true
	})
}

export function getDeviceListApi(data){
	return http({
		url:'/channel/ssDevice/list',
		data,
		isToken : true,
		method: 'GET',
		// isOpenId: true
	})
}

export function attReissueAddApi(data){
	return http({
		url:'/attendance/attReissue/add',
		data,
		isToken : true,
		// isOpenId: true
	})
}

export function attEventRegAddApi(data){
	return http({
		url:'/attendance/attEventReg/add',
		data,
		isToken : true,
		// isOpenId: true
	})
}

export function attEventRegQueryByIdApi(data){
	return http({
		url:'/attendance/attEventReg/queryById',
		data,
		isToken : true,
		method: 'GET'
		// isOpenId: true
	})
}

export function attReissueListApi(data){
	return http({
		url:'/attendance/attReissue/list',
		data,
		isToken : true,
		method: 'GET'
		// isOpenId: true
	})
}

export function attReissueQuerybyidApi(data){
	return http({
		url:'/attendance/attReissue/queryById',
		data,
		isToken : true,
		method: 'GET'
	})
}

export function reissueProcessApi(data){
	return http({
		url:'/attendance/attReissue/reissueProcess',
		data,
		isToken : true,
	})
}

export function attEventRegListApi(data){
	return http({
		url:'/attendance/attEventReg/list',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function eventProcessApi(data){
	return http({
		url:'/attendance/attEventReg/eventProcess',
		data,
		isToken : true,
	})
}

export function attComputeResultListApi(data){
	return http({
		url:'/attendance/attComputeResult/list',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function getTimePeriodByPerson(data){
	return http({
		url:'/attendance/attReissue/getTimePeriodByPerson',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function sumComputeResultPageApi(data){
	return http({
		url:'/attendance/attComputeResult/sumComputeResultPage',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function attAskforleaveQueryByIdApi(data){
	return http({
		url:'/attendance/attAskforleave/queryById',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function attAskforleaveListAuditApi(data){
	return http({
		url:'/attendance/attAskforleave/listAudit',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function attEventRegListAuditApi(data){
	return http({
		url:'/attendance/attEventReg/listAudit',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function attScheduleListApi(data){
	return http({
		url:'/attendance/attSchedule/list',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function attScheduleSwapApi(data){
	return http({
		url:'/attendance/attSchedule/swap',
		data,
		method: 'GET',
		isToken : true,
	})
}

// export function attScheduleListApi(data){
// 	return http({
// 		url:'/attendance/attSchedule/list',
// 		data,
// 		method: 'GET',
// 		isToken : true,
// 	})
// }

export function attScheduleSwaprecListApi(data){
	return http({
		url:'/attendance/attScheduleSwaprec/list',
		data,
		method: 'GET',
		isToken : true,
	})
}


export function attScheduleSwaprecAuditApi(data){
	return http({
		url:'/attendance/attScheduleSwaprec/audit',
		data,
		isToken : true,
	})
}

export function attReissueListAuditApi(data){
	return http({
		url:'/attendance/attReissue/listAudit',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function getAuditdeetailApi(data){
	return http({
		url:'/attendance/attScheduleSwaprec/getAuditdeetail',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function attComputeResultListPersonalApi(data){
	return http({
		url:'/attendance/attComputeResult/listPersonal',
		data,
		method: 'GET',
		isToken : true,
	})
}

export function sumComputeResultPagePersonalApi(data){
	return http({
		url:'/attendance/attComputeResult/sumComputeResultPagePersonal',
		data,
		method: 'GET',
		isToken : true,
	})
}